package com.zhuoyue.biz.core.api.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.zhuoyue.biz.core.api.domain.base.BaseDoClass;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author wjming
 * @ClassName: WifiDevice
 * @Description: wifi设备对象信息
 * @Date 2021-07-08 13:31
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "`tbl_wifi_device`")
public class WifiDevice extends BaseDoClass implements Serializable {


    /**
     * 家庭ID
     */
    @TableField(value = "`home_id`")
    private String homeId;

    /**
     * 房间ID
     */
    @TableField(value = "`room_id`")
    private String roomId;

    /**
     * wifi设备MAC地址
     */
    @TableField(value = "`wifi_mac`")
    private String wifiMac;

    /**
     * 设备类型
     */
    @TableField(value = "`device_type`")
    private String deviceType;

    /**
     * 图片地址
     */
    @TableField(value = "`img_url`")
    private String imgUrl;

    /**
     * 开关状态
     */
    @TableField(value = "`switch_state`")
    private String switchState;

    /**
     * 开关时间
     */
    @TableField(value = "`switch_time`")
    private LocalDateTime switchTime;

    /**
     * 设备名称
     */
    @TableField(value = "`name`")
    private String name;

    @TableField(exist = false)
    private Object actions;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_HOME_ID = "home_id";

    public static final String COL_ROOM_ID = "room_id";

    public static final String COL_WIFI_MAC = "wifi_mac";

    public static final String COL_DEVICE_TYPE = "device_type";

    public static final String COL_IMG_URL = "img_url";

    public static final String COL_SWITCH_STATE = "switch_state";

    public static final String COL_SWITCH_TIME = "switch_time";

    public static final String COL_NAME = "name";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_MODIFY_TIME = "modify_time";
}